package grape.composite.rest.businessdistrict.mapper;

import grape.composite.rest.businessdistrict.form.BusinessDistrictListForm;
import grape.composite.service.businessdistrict.po.BusinessDistrict;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.composite.rest.businessdistrict.form.BusinessDistrictCreateForm;
import grape.composite.rest.businessdistrict.form.BusinessDistrictUpdateForm;
import grape.composite.rest.businessdistrict.form.BusinessDistrictListPageForm;
import grape.composite.rest.businessdistrict.vo.BusinessDistrictVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 商圈表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-10
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface BusinessDistrictWebMapper extends WebMapper<BusinessDistrictVo, BusinessDistrict> {

    BusinessDistrict formToPo(BusinessDistrictCreateForm f);
    BusinessDistrict formToPo(BusinessDistrictUpdateForm f);
    BusinessDistrict formToPo(BusinessDistrictListPageForm f);
    BusinessDistrict formToPo(BusinessDistrictListForm f);
}
